Added compatibility for RHEL and CentOS