Significantly robustify the dnsmasq installer script.