Oops, it's pkgbase, not pkgroot
Add conditional checks to install script operations