Made UpdateTask.deployFile synchronized, to avoid a rare chance of concurrent creation of the same directory by two different threads.