add correct version of dependency to component.json when installing