libcoprthrcc: added respect for env var TEMPDIR
libcoprthr: added respect for env var TEMPDIR