Updated Java version check