Improve invalid package name errors

Notcied a number of issues cropping up that boiled down to how bad the error message is, this attempts to fix that.