Remove the temp file in edit_template after we're done with it