Implement checks for CentOS 7 in install

Corrected and normalized code in rpm_dist() and repository_url_part() to determine version. Should work on future versions of RPM based OSes.