Fixed the remove tmpfile line.