AbstractRepo.completeModules: keep looking in other versions of the same module until we find the right type of artifact

Otherwise we stopped searching after we found a module of the wrong type and did not collect it