Fixed invalid Loopback protocol detection on FreeBSD/OSX.