Guard against Windows line endings when running tests.

This doesn't harm anything when running in Linux/OS X.