Support externally generated files in .gitignore

We do this by including .gitignore-base in our generated .gitignore,
if the former exists.