Check if brew is installed before using it