ENT-653: fix external control of file name or path (CWE ID 73)
ENT-653: fix backward compatibility for early JVM versions