Save gopkgPath before for loop