c/changelog-file.pm: Merge two loops into one

Signed-off-by: Niels Thykier <niels@thykier.net>