pyenv: Detect $PYENV_ROOT and act accordingly.

This also fixes issues for Homebrew users if the followed the caveat to
set PYENV_ROOT to use the homebrew created directories.