packager: fix changelog rewriting from template