Fix message if a pattern has not been found.
Move the pkg_keys[] array from private/pkg.h to pkg.c to reduce duplication.