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