Small cleanup.
Fix a bug preventing dependency resolution with one mod.

If two mod folders provided the same mod in different versions a versioned dependency
a versioned dependency could fail as the code would return after finding the
first mod not satisfying the dependency.