use $TMPDIR on the worker side, instead of hard coded /tmp