Dependency builder fix

It wasn't working on detection of dependencies from multiple namespaces.