update bower.json and component.json if present

Closes #6