Catch `cabal configure` failure properly
Merge pull request #327 from DanielG/dev-configure

Catch `cabal configure` failure properly
removing warnings
using force-mode-line-update just in case.
first try to resolve #322.