Use cached_path for built-in gems if the gem exists locally

This fixes the issue where bundle --local hits the remote server instead of using the gems from vendor/cache.