improved gemset update, fix #3156