Changed repo check from operatingsystem to osfamily

Due to the large number of RHEL clones it's simpler to use osfamily. In
my use case Scientific Linux wasn't mentioned and thus the module failed
in my environment.
Also did the same for Debian to be consistent.