Fix $host != $master is true for master (when master == undef)