Updated client to check for FreeBSD befor socket search