os.execShellCmd: use WEXITSTATUS to retrieve exit code (#10222)
os.execShellCmd: use WEXITSTATUS to retrieve exit code (#10222)

According to POSIX, system() shall returns the termination status in the
format specified by waitpid(), which means WEXITSTATUS should be used to
retrieve the exit code portably.

This fixes execShellCmd on Haiku.
dom96/Nim,dom96/Nim,dom96/Nim,dom96/Nim,dom96/Nim,dom96/Nim,dom96/Nim