Fix logic in build.xml