Fix Oracle JDK version parsing when OpenJDK is installed