adding fix for war command encoding issues and using correct war app when exporting so we generate the correct bundles
minor change to variable names since thethey are reserved words in google closure compiler