Fix bug when working with network drives in windows.