Merge pull request #1 from dschep/mktemp

Use mktemp instead of date for safety
Merge pull request #2 from dschep/cleanup

Delete file if upload successful