Use platform-independent line separator

Use platform-independent line separator to fix broken test on Windows