rex commands: make sure that pkg.foo returns an empty string for packages that are not present.  same for version.part() and version.thru().