Changes foreach command to print name of each package