Fix package lookups in script