Handle directory creation race condition.

As raised