bugfix: reopen tty if $STY is empty

Benjamin Mako Hill || Want to submit a patch?