Fix ghc-mod version detection

Taken from ghcmod-vim