[Fixes #79] Work with non zero tmux base-index.
[Closes #47, #36] Add support for rbenv.