PIM-2919 : add some sed commands in the upgrade file