Proper line endings handling

Line endings should be handled properly not only unix ones..