Merge pull request #10 from crdx/patch-2

make sure the temporary file exists before trying to delete it