Fixed CSV file generation: all the lines were consecutevely writter,
without any newline.