Remove temporary file after update