HOSTDEV-1811 fix implementation for windows