Allow tmux sessions to be exited without closing the window; fix ls on bsd