Fix error message if build is started with an old java version