make tmpdir configurable