Added support for building WAR file to build.py