fix gem version comparison