update bower.json and component.json if present