fix for templates (_cache and _compile folders)