build: Set TMPDIR for local testing.