Check your line delimiter/endings. On Linux I had a file which had CR LF line endings rather than just LF.
Removing the extra CR (^M) characters fixed the problem.