Instead of explicitly specifying a /tmp/ path to mktemp, use the -t flag, which respects TMPDIR.
Merge pull request #27 from rodrigc/master

Instead of explicitly specifying a /tmp/ path to mktemp, use the -t flag

The default respects TMPDIR environment var.