make Sabnzbd host/port/scheme detection more robust