Rename temporary file