fix version detection for new and old ghc-mod versions

Should fix #58 #57 and #59

Tries new method with `ghc-mod version` with a fallback into the old method when it fails.