A little more work on the Emscripten buildbot script.

Should upload tarballs now, etc.
I don't know if Unix scripts are useful at all on Emscripten, but fix them up.
Patched to compile.
Really patched to compile this time?
Actually fix Unix scripts this time.  :)