added logic to check for .rbenv dir