core: default a value to avoid potential exception in SShRun
core: copy STDIN for SSHRun with Subprocess on Windows

The comments explain