fix version detection for new and old ghc-mod versions