Fixing mktemp command to work on BSD.