Fix append CSV file

Changed behaviour of CSV file creation from append to overwrite