Mkdir tmpdir, and rename to the destdir after job is finished.