update template files with relative URLs