Add back extension, missed due to CPP
Remove GHC 6.10 and earlier stuff
Change captureOutput to return the string directly, no Maybe wrapping
Refactoring suggested by HLint