Update PackageGet.php

! Paths containing many files over tax the memory despite any large presets prior to the loop. Allocating it within the loop (only when necessary) solves the issue. 

Signed-off-by: -Underdog- <github.underdog@gmail.com>