fix: render $vars in dirs added with add_dir()
deployment: log information about templates on rendering errors