rustpkg: Fix fetching remote packages

Closes #9193