v5.0.40 core build.xml bug fix