set stdin_data to None on non-posix systems

otherwise the elif stdin_data check further down will fail. With this crash
works correctly on windows.