fix _VimuxNearestPaneIndex and escape the text to send to tmux

I'm using `shellescape` because we are shelling out to tmux anyway.
The bug that I found that led to this PR was with sending `$something` to tmux: `$something` was a php variable that never got to the REPL because it was eagerly expanded by the shell.