configure: better test for mktemp