Fixing update of dev packages

Closes #961, by reverting the fix to #806 (420401676820894094ef33b22152c5e667453270)
Re-implementing a better fix to #806, delegating the responsability to update the remote URL to
the backend at fetch time. Tested on git, not yet on mercurial