Add a search for installed executables

ghc-pkg list doesn't find things installed without libraries
apparently.

This patch will also search ~/.cabal/packages/hackage.haskell.org for
the library you're asking to cabal install.