Correct condition to only rehash if rbenv or pyenv is found

I don't know what I was thinking when I did that.

Signed-off-by: Ealden Esto E. Escanan <ealden@odd-e.com>