Enable support for more OSes by using $::osfamily fact instead of $::operatingsystem.

Also some removing some lint.