change check to osfamily instead (supports oraclelinux also)