Get mktemp working across OS X and Linux.