Fix "version X is not installed" with multiple PYENV_VERSIONs

This was introduced when merging the rbenv upstream change
(https://github.com/sstephenson/rbenv/commit/6bb7f07d2d).