readdir: Ignore the presence of submodules.