Changes system call to subprocess.