fixed newlines at end of CSV files