Do a correct check for the rbenv and rvm dirs