fix: redundant and wrong case in `forEachModuleInDir`

Calling `f` on `dir.lean` for each `dir` is unnecessary as we call it on
each file anyway and the check was wrong because it ignored `entry.root`.
1 file changed