change _run_cmd to use call instead of Popen