Fixing order of checks

First check if ``os_family`` is RedHat only then proceed.