fix a bug in patching popen_noshell.c