only write osx_tags if there are any; directories do not include themselves in their items_count any more