Distribution/Gentoo/Packages.hs: speedup haveFiles

Switched from linear search (in List) to logarithmic (in Set)

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