Add external epel support for centos support.
Fix env var check.