Make %*ENV setup portable (hopefully).
Missing null check.
Mark out a few things that explode on JVM.

This gets the setting loadable, just about.