Skip malformed package names.

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

Fixes #152.
Make SPMA fail if a package name is invalid.
Merge pull request #178 from piojo/malformed-pkgs

Raise errors if package names are malformed