Better TMP folder generation

Using appropriate command to generate temporary folder.