REF: checking if template folder exists
REF: checking if template folder exists

Former-commit-id: d394965f9b1d2751806adbccaafea17ed4c527fb
Former-commit-id: cc69a7ad529db8446a15f242212169cd49f07899
3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox