Added tonumber()

string.sub(os.version(),9,#os.version()) < 1.6
was throwing a string compared to number exception