change default temp dir to tempdir