Added support osx's version of mktemp

OSX doesn't support mktemp without a template of some sort. This change will support all forms of *nix.