Migrate to $::osfamily

Prior to this commit we did not use osfamily, this should clean up the
code a little bit to make it a little more readable