add conditional template folder for issue #9