switch from check_output to Popen

Looks like subprocess.check_output is not available on python 2.6(something). closes #3725