remove cruft from pre-posix_spawn version of the system function