Adds support for JIT_HOME setting.

Usually you can write files in HOME; but if you can't you might want
to change it via the JIT_HOME environment setting.