Support externally generated files in .gitignore

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