runHooks: Write manifest to file

@anthonybishopric @mpuncel