Regenerate metadata files