COOK-2247 pkgs should be a list of Strings

pkgs.each doesn't work on a String, it must be a list of Strings