support python 2.6

subprocess.check_output doesn't work at python 2.7

Default python of CentOS 6 is still python 2.6
Merge pull request #23 from wyukawa/feature-python2.6

support python 2.6