Avoid leaving trailing cruft if the manifest shrinks.