Avoid `subprocess.check_output`

...because it's not available with Python 2.6.