make compatible with python 2.5 and 2.6

- replace subprocess.check_output with check_call