Fixed to_i version compare

Fixed to_i version compare for Ubuntu Trusty