Replace tmux-rehash-panes.sh with shell function

Using pgrep for filtering on parent pid should work on both Linux and OS
X, as opposed to the previous method.