add brew check; brew is only for mac