Using versioncmp() function to compare OS version

Previous method didn't work with version of CentOS 7 that used verion 7.0.54 which isn't a valid float (or decimal)