Fix makeDirectory() for Windows.