Use "ghc-mod version" to detect version instead of get_last_errmsg