Improve gems source management scripts