add makedirs to cp.get_template
Merge pull request #11759 from makinacorpus/cp

add makedirs to cp.get_template