Made the ant script more universal