Delete the `main` property if needed

If the script that is removed is also defined a `main`, we delete the main property as well.
Bump