tests: Honor environment variable 'TMP'.