support both CentOS and Debian derivatives