Detect .rbenv/bin being directory, not just file