Fix for dep installed from the cli not being added to component.json (#4...

...65).

Proposed fix for https://github.com/component/component/issues/465 and https://github.com/component/component/issues/405.