Be a bit more safe with the temporary files

Just two minor things I ran into when using this module, a holdover until .12 lands :)