Add `--ignore-root` option in generate mode

If `root` is setted in _config.yml, add this option to
generate right static files path when you want to preview
in local environment.
Fix CustomCatalogGenerator arguments number error
Fix unused-variable warning