Fix EEXIST race condition with directory creation.

If we are creating parent directories, some other async call might race us to the mkdir, so EEXIST is a possibility there as well. Now we ignore the EEXIST from the second mkdir call as well as the first.