Avoid temp folder creation race condition