updater-script: fix script cleanup