Fix debian changelog generation

system("gzip") renames the file, so wait until we're done
Merge pull request #376 from mbakke/master

Debian changelog chmod fails