various fixes for centos handling