write out the package metadata file