changing output directory and using escapeCsv in csv data export