Fixing ant script and make external tool work.