fix detecting default/global gemset initalization, fix #1976