Fix OS version comparison for CentOS 7