make setup.py work in Python 2.6 (no subprocess.check_output)