Fixed freebsd abstract socket problem

FreeBSD not supporting abstract UNIX socket namespace, so we should use filesystem instead.
Tested on FreeBSD 10.1 stable.
I'm not really into shell scripts, so maybe there is a better way to do this.