configure: accept $TMP as location for temporary files