Add build script for cots
Refactor ant build script