Fixes newline problems on Windows for command logs generated in Linux