Adds Junit Logging to location specified via environment variable, fixes crashes and broken merge.