add a check for presence of dependencies
make sure that /var/sadm/{pkg,install} are always created
cosmetic changes
don't include contents files and pkginfo in the file listing, that is useless
add some more tests