feature #2401: Set RUBYLIB environment with vendorized libs

(cherry picked from commit 41726e876a8d181198d00525f7e856b7bf7f33ba)