fixed git/svn root detection in default cases