Fix shellout on OpenBSD.

     getpgid() will succeed unless:

     [EPERM]            The current process and the process pid are not in the
                        same session.

Obvious fix.