Case-block instead of if-block

The case block form is a bit cleaner. Added a default warning for cases
when osfamily isn't supported.