Fix getting list of packages not in packages directory