Added detectOS to component.json.