Fix searching for plugins

If a plugin is in a dependency, rebar didn't search for it carefully
enough.