Skip malformed package names.

They were being inserted as undefs in the $wanted set.  Now we skip them and
reduce warnings.

Fixes #152.