Configure the Emscripten cache directory from the command line.

This allows passing --cache to emcc to set the Emscripten cache
directory rather than only allowing this to be configured via
the EM_CACHE environment variable.
Merge pull request #2816 from waywardmonkeys/set-cache-from-command-line

Configure the Emscripten cache directory from the command line.