if no slaves, set master to the last know one

If no slaves are fount, set as master the current server:port if  it
was Master before