fix ghc-mod command issue #186

I technically know nothing about python but it works for me.