> The ${PYENV_ROOT}/shims might be appeared at the first or last in the $PATH

This gets handled by `_path=":$PATH:"`.
> Plus, the variable declaration of _path should be surrounded with "" to avoid unwanted argument expansion.

I will fix that.