Fix deps for top-level dependencies

Without this, deps only returns sub-depencies of the
dependencies of the specified package.

For example, deps(fontconfig) should show libgcc, libxml, and freetype.
Without this patch, deps(fontconfig) shows only zlib.