Added checks for rpm based systems.