Replaced clumsy generation of manifest files.