fixed JDK 8 detection on Linux