Distribution/Gentoo/GHC.hs: traverse /var/db/pkg only once to find ghc installs

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>