Adding opts.template to create dir