py2.6 fix.

check_ouput is available in 2.7 and above. Using subprocess.Popen
instead.