fix shell issue in windows
supports windows