Added error checking for Red Hat related distro's.