Simplify lib directory structure.
Remove pkginfo dependency.