Had to switch from subprocess.check_output to subprocess.Popen to make
it backward compatible.