Class finder bug

The class finder was not correctly finding dependencies for classes that depended on the same class from different modules.