use mktemp instead of $TEMPDIR
Merge pull request #5 from dkoper/bash

use mktemp instead of $TMPDIR