fix version handling

closes: #2178

Net::SNMP->version() doesn't return a string value, as expected for
-version argument of Net::SNMP->session(), but a numerical identifier.