This should be rewritten to $::osfamily as well.