Pkg.generate tweak

When generating new packages, run remote add before manually configuring the remote so that the fetch refs are set in the .config file. Fixes #5480.