fix gems' directory path