Make client/powerline.sh work in osx

Hi, this makes the shell client work in osx.
It behaves the same way as the C client for the socket, it uses a filesystem socket.
It uses gnu env rather than the default BSD env which doesn't handle -0. It can be installed with `brew install coreutils`
Cheers