Only execute rbenv rehas if the shims directory is writable

This removes the `rbenv: cannot rehash: /usr/local/share/rbenv/shims isn't writable` warning with running `bundle install` in a system-wide rbenv installation.