PROV-918 Added support for <ifdef> tags in templates