Fix error when compiling with HSE < 1.16
Rewrite `ghc-mod` command line frontend.