set tmpdir to /tmp - this is less error-prone