Fix #391, Error on command `-g` when used before command despite --help output saying this is valid
Fix #386, `ghc-mod version` should not check `cabal configure`
Fix #387, Pattern match failure in GhcPkg