Pass dynflags down to loadPackageConfig rather than using defaultDynFlags