Normalise line endings when testing

Git's linefeed settings may not match the host OS when checking out a project, causing the tests to fail, so normalise all linefeeds before comparing.