Bug fix + added api distribution to build.xml