Use lineterminator for CSV writer

Reference: #11 (more testing needed)