Accept any case for "syntax error" text from shells

For background, see #222.

For now accept "syntax error" in lower or mixed case.