Update generator.rb

fixed config file path when use modules, for example:
Api::V1::UserController -> public/api-spec/v1/api/v1/user.json
and use  "apis" : [ { "path" : "api-spec\/v1\/api\/v1\/user.{format}" } ] in api-docs.json