The content-dir rebuild script now skips entries without main files present.