Fix file and dir locale detection
Use inherited Jdk