Use mkdirp to create paths in generator and added tests for swaggerize command.