Honor $TMPDIR in the test suite.