update paths in template files