[utils] Fix Get{RepositoryPath,SourceVersion} to have a more robust is-git-svn