d8101729711ac6aab9b2e7072dda06856df99abd fixed an issue with Windows but...

... broke Linux system, this should work across both

The logic to detect windows is the same approach ant does to determine an ant build is running on the "windows" os family.