added conditional based on the existence of the CSV file in /tmp