Correctly handle network locations on Windows