processing patterns including jinja2 template
replace copytree with same algorithm but handles .arm jinja2 templates