Find TMP dir based on OS default path

Find TMP dir based on OS default path
Merge pull request #113 from slashmili/patch-1

Find TMP dir based on OS default path