Update generate.sh

fixed xml2 path error