fixes for automation script for CentOS/RHEL.