Fixed performance issue when executing IsValidGitDir on an UNC path (now we stop when reaching the root directory (provided by PathIsRoot), like "\\server\share")