Improve usage of TMP folder.