fix detection of snmp library for non-standard but cached locations