Catch `cabal configure` failure properly

For #322