because different versions of mktemp don't support --tmpdir, try another approach (and curse the slaves w/ old versions of bash)