Fix gems installation from local dir.

Change-Id: I18bd360b2c0d49bc3f225a3dd98c37bcd8e2604a