[Pharo-project] Issue 4021 in pharo: Improve cleanUpForRelease and cleanUpForProduction