Allow specifying $TMP for the tests.

This way the tests that need a non-noexec /tmp mount will be able to
run, if another TMP directory is specified.