Update `mktemp` command to work on Mac OS X

Fix issue 274. It seens like the same with
[this issue](https://github.com/StanAngeloff/lotte/issues/1).
Merge pull request #275 from spacewander/master

Update `mktemp` command to work on Mac OS X.