Add check for brew command before trying to run it