Optimized MANIFEST.MF creation algorithm