Fix for the war command.
Thanks @adi97ida

Signed-off-by: Kevin <kevainxxx@gmail.com>