Detect slaveof variable better