bugfix: fix absolute paths in templates