bugfix: remove references to global $debug (not implemented yet) and $rhost (not applicable in sanoid)