change temp file generation to something more portable (for silly windows systems)
fix temp file locator. previously generated new temp files on each call
Merge pull request #1 from marcusklaas/tmp-dir-portability

change temp file generation to something more portable