Forcefully add files in `Pkg.generate`

Makes the generation more robust and avoids potential clashes with any
global `.gitignore`.
Merge pull request #9193 from ninjin/nin/pkg_add

Forcefully add files in `Pkg.generate`