Fix JDK version extraction