Fix working with dos line endings