Eleminate the use of mktemp

Assuming mktemp writes on disk, this also can be useful for read-only filesystem like nano BSD (some pfSense flash installs).
Some really small cosmetic too (maybe useless).
Merge pull request #2 from alcoralcor/master

Eleminate the use of mktemp