cleanups for java/jruby/log4j environment checks

while in this area I figured I'd circle back and make it consistent.