Invocation from shell needs to determine correct DBAPI instead of assuming /
I believe this code is wrong when using overlays - currently the Adélie build system is running on my system in a chroot where master=adelie but ::gentoo is still /usr/portage so this somehow cheats the system. Unsure what would happen if I were to merge something out of, say, the KDE or Mozilla overlay.
native(os.environ, portage.db['/']['porttree'].dbapi)