autodetect the mktemp/tempfile command (reported by DUCLOS Andre)