make sure the migtrated environment and wrappers point to new gemset, fix #2446