Workaround for agents < 2.8.0 in windows
Raise an error if unable to delete checkout path