pkgs/build-support/cabal: enable 'doCheck' only on GHC versions 7.x or later

Older GHC's come with a version of Cabal that doesn't even understand the
--{enable,disable}-tests command line arguments.