Updated pkgIndex file to only load script after package require