[PATCH 4/7] src: use virFileRewrite for dnsmasq addnhosts file