Updated ant build script.
Fixed a bug in commandline argument handling.