Use os_grain instead os_family.  Also, use yumpkg for XCP >= 2.0 per http://wiki.xen.org/wiki/XCP_Roadmap