Fix to set the MIBDIRS environment variable, if snmp module is installed.