restart deploy task make tmp directory if necessary