COOK-2247 pkgs should be a list of Strings

pkgs.each doesn't work on a String, it must be a list of Strings
Merge remote-tracking branch 'origin/patch-2' into myunmerged-patches