Handle DOS line endings on Linux