Consider different possibilities for tmpdir.