Fix CRLF comparisons when run on Unix/Mono

This addresses issues when strings are compared on Mono/Unix.