xmonad: improve post-process hook to support GHC 7.8.1