fix mktemp for *nix