add pipefail to some lexer scripts
some bison parser generators print 'State' instead of 'state' in .output
fixes #34