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

Use mktemp instead of date for safety