Remove duplicate conditionals around $::osfamily

Without this patch, multiple conditionals are in use for the same thing,
which makes the code more complex.