Fix error reporting from ExecuteShellCommand.