Fix ordering between publish and creating a directory listing so it's
deterministic