ensuring that recursive pkg_delete'ing works by using the correct pkg_dbdir to find packages. This fixes recursive deleting if the -K flag is passed to pkg_delete(1), and the named dbdir differs from the default dbdir (/var/db/pkg).