Completely rewrote session saving to better support pane start path on older tmux versions.