check Mac OS before adding brew php path