Thrid part of the fix for ROOT-6194 to handle the windows case