Check for export file existence before trying to delete - #897