dnsmasq: add dhcp-script hook conditionally