Fix for TRQ-1963: TMPDIR not set when $tmpdir option was used..