mktemp
Allow `mktemp` to make use of the `TMPDIR` environment variable when calling it with a template. Don't use the deprecated `-t` flag.