Modified for FreeBSD and fixed broken rcon response parsing.