simplify chunk size determination in emscripten.py