Try changing PYENV_VERSION in script scope to troubleshoot.