For OSX the order of parameters for mktemp matters.