Fix handling of ignored packages