-made tmpdir setting cross-platform friendly, should work for windows