Fix issue with python 2.6 not having subprocess.check_output()