fixed the path and environment issues in rbenv::gem

Change-Id: I785b61f7ef58f2761cf79cd3a227854ea39e6dc6
Speed up the build

* disabled rdoc generation by default
* use all cores by default

Change-Id: I6a2bdc5eea0ddca626e9355b07ac57ccc183388b