add makedirs to cp.get_template