Update generator.rb

fixed config file path when use modules, for example public/doc/api/v1/api/v1