Fix the deletion of the created subfolder tmpfile