dnsmasq.conf template: fix green device name handling. Refs #1883