Trying PTY.open instead of spawn.