Add trivial script for running a command under a pty.
Improve under-pty.
Exit with exitcode >0 if the spawned process dumped core.