tests: Fix handling of newlines from expected output files on windows