See https://github.com/emscripten-core/emscripten/issues/7198
In both cases updating these is slightly non-trivial so encode the process in the script.