Fix for the mktemp command on mac computers.

Here is a link to where I found a solution for this: http://unix.stackexchange.com/questions/30091/fix-or-alternative-for-mktemp-in-os-x#84980