Merge pull request #3370 from libgit2/cmn/submodule-refactor submodule: refactor to be more explicit in the search