support python 2.6

subprocess.check_output doesn't work at python 2.7

Default python of CentOS 6 is still python 2.6