Fix: managed hosts file overwrote intended changes