See these mails.
This only happens on Mono (newline difference).
Pasting Jb Evain's mail:
The issue lies in the processing of new lines in
The code is appending \n as terminating new lines, but checks for the
presence of Environment.NewLine inside the evaluated string. Obviously
it works only if Environment.NewLine is \r\n, and not \n.