Substitute some @@ vars in generate files. Debian: #665688

This is a hacky solution to this problem as it uses a list of files to
substitue the variables in instead of fixing the root cause.
Merge pull request #122 from mattthias/stable-2.0

Substitute some @@ vars in generated files. Fixes Debian Bug #665688