Fix the pipe-splitting regular expression

A commenter pointed out that the regex didn't work for basic things like
"echo 'hi'". The reason was the confusion around needing a middle quote
in the second half of the regex.

These examples make it clearer: http://rubular.com/r/zl4X5p5Fev.