The build fails when building from a clean source tree, because the CuckooChessEngine.jar file does not exist. This commit adds a workaround, but you have to build twice to get the CuckooChess.jar file to be built.