unlink the extra tmp file generated