Use promise tecnique for hook scripts to execute them in order.
allow "keep" filter to be filled in preinstallation with upt.json from temp directory