fixed hang of external process launched with popen4 because of incorrect building of command line