Skip non-local dependencies when running with --local

This is a second attempt at a fix for #2774. It is an improvement on #2988 in that:

* It doesn't require the addition of a platform 'rubinius'
* It more broadly solves the problem by also skipping, e.g., gems marked :mri_18 when run on MRI 2.0.