fixed up delete_temp_files a tiny bit