Fix check for subprocess.check_output.

The check for the presence of subprocess.check_output should be

    try:
        return getattr(subprocess, "check_output")(*args, **kwargs)
    except AttributeError:
        ...

but one may as well always override the definition.
Merge pull request #874 from anntzer/bugfix

Fix check for subprocess.check_output.