cache: Handle cases where git url contains host more than once
cache: Handle cases where git url contains host more than once

Slight fixup for #3224

rsp/npm,princeofdarkness76/npm,misterbyrne/npm,TimeToogo/npm,evanlucas/npm,thomblake/npm,cchamberlain/npm-msys2,yodeyer/npm,misterbyrne/npm,lxe/npm,segmentio/npm,yyx990803/npm,segment-boneyard/npm,DIREKTSPEED-LTD/npm,ekmartin/npm,segment-boneyard/npm,segmentio/npm,evocateur/npm,cchamberlain/npm,kemitchell/npm,yodeyer/npm,misterbyrne/npm,DaveEmmerson/npm,TimeToogo/npm,haggholm/npm,rsp/npm,segrey/npm,xalopp/npm,cchamberlain/npm-msys2,DIREKTSPEED-LTD/npm,kriskowal/npm,evanlucas/npm,kemitchell/npm,yibn2008/npm,evocateur/npm,yibn2008/npm,chadnickbok/npm,kemitchell/npm,chadnickbok/npm,ekmartin/npm,DaveEmmerson/npm,segrey/npm,midniteio/npm,yyx990803/npm,evanlucas/npm,thomblake/npm,lxe/npm,DaveEmmerson/npm,Volune/npm,yyx990803/npm,thomblake/npm,kimshinelove/naver-npm,DIREKTSPEED-LTD/npm,yodeyer/npm,Volune/npm,princeofdarkness76/npm,midniteio/npm,evocateur/npm,kriskowal/npm,cchamberlain/npm,segmentio/npm,xalopp/npm,ekmartin/npm,haggholm/npm,kimshinelove/naver-npm,TimeToogo/npm,cchamberlain/npm,yibn2008/npm,princeofdarkness76/npm,lxe/npm,Volune/npm,kimshinelove/naver-npm,segrey/npm,rsp/npm,kriskowal/npm,haggholm/npm,midniteio/npm,cchamberlain/npm-msys2,xalopp/npm,segment-boneyard/npm,chadnickbok/npm