Fix Python 3 compatibility in test_startup
Add a fallback for IPC sockets on Windows.