fixed race condition when building deploy folders