Fix searching for plugins

If a plugin is in a dependency, rebar didn't search for it carefully
enough.
Merge pull request #90 from Motiejus/dep_plugin

Fix searching for plugins