Fix installation of templates using DESTDIR for packaging