mx: fix in java version parsing