reverse linking @global with default gems path, closes #2267