Make WorkerTmp accept a configurable tmp dir

This adds a --worker-tmp-dir option to use an optional temp dir when creating heartbeat for workers