Fix issues with pkgdesc, and add even more checks.