fix javac version detection