dev/misc-cleanups

Some minor cleanups. The more important changes are the $TMUX check, using -L on select-pane, and not spawning a shell.