Added delete before unwar task and support Windows and non-Windows DEV
env.