Make shell client work in OS X:

- use gnu env for `env -0`,
- use filesystem socket.