Use variable not constant for Erb test

Using uppercase name creates a constant, which can cause warnings as it
is redefined.
Replace original ERB filter options after test

This is just a precaution, it isn't causing any issues at the moment.
Only check script lines for continuation keywords

If a non-script line starts with a keyword it can cause errors.