improve error checking for package name, version and build string