Added better handling for rvm & rbenv and zsh.