add more grep option for dnsmasq generate script