fixed java version check