Check if data file already exists before renaming temp file