add checks to rbenv and pyenv initialization