Use common code for RHEL/CentOS and Debian/Ubuntu