Move creation of temp dir to worker start