Fix cabal resolution to only match "x.cabal" and not "~/.cabal/"

Ping @purcell