Fix search in multiple registries

Actually it's not possible to search in several registries. There is the same bug in lookup but i don't have the time to fix it.

It's a huge problem because we can't use a custom bower registry in addition to the legacy registry.