Remove hard-coding of warSourceDirectory and consolidate default values.