ghc-mod version output could be on stdout

This checks whether ghc-mod's version output comes on stdout or stderr.
It is like pull request #57, but also checks for stderr.

I am seeing this error on both ghc-mod 5.0.1.2 and 4.1.6.

There is also an issue about this #58.