I had to alter the SED lines as the snmpd.conf has changed in this version, the following worked for me...

sed -i "s/default[[:space:]]*public.*/default $SNMP_TRAP_DEST/g" /etc/snmp/snmpd.conf