fix MakeDir error codes for NativeFileSystem failures