fixed newline handling for windows by more carefully reading the csv manpage