Fix test_asm_pgo on Windows.

Extend the use of response files to cover the case when emcc invokes emscripten.py, so that Windows command line length limitations don't break the test_asm_pgo on Windows.

Refactored the response file usage into a separate utility, in case in the future new places arise where Windows cmdline length limitations occur.