Use cached_path for built-in gems if the gem exists locally
Added the test to check if install --local doesn't fetch specs remotely
Merge pull request #2998 from Who828/master

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