Patch from waider to set exit code of last executed command specified