Avoid endless recursion on Windows.

`mkdir` did not recognize the root directory on Windows.