runHooks: Write manifest to file