fix cleaning up of original environment to make sure that sanity check for EasyBuild doesn't fail