Fix downloading of packages file when fetching pkg:// deps

Previous code was downloading it a for each dep that used pkg://.