I had the same problem using win_shell. The problem was a # comment with an apostrophe in it which the parser read as imbalanced.