Refine war build script