Improve performance of rbenv-which

This implements removing of the shims path element via bash
substitution, instead of jumping around in all the `$PATH` elements.

Initially submitted for `pyenv`, where `pyenv-which` slowed down a
particular plugin noticeably: https://github.com/yyuu/pyenv/pull/129