Fix check for brew command