If opening an input fails, try instead to open it as a stream Unix domain socket.