Make shell client work in osx, use gnu env for -0, use filesystem socket