use global not default for linking default gems path, imptove the process, closes #2236