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.