Refactor lookup command and partially fixed #72.

This PR refactor Bowerphp::getPackageInfo() - partially.