Updates hostname matching to be more flexible with the ".local" suffix