fix chicken-and-egg problem when javac runs before scalac