make tempfile destination directory switchable