When generating new packages, run remote add before manually configuring the remote so that the fetch refs are set in teh .config file. Fixes #5480.
Merge pull request #7141 from quinnj/jq/generate

Pkg.generate tweak