Only search for .git directories to avoid submodules