firmware: hook: Simplified run_hooks_from_dir
firmware: hook: Simplified run_hooks_from_dir

This just rework the code to be smaller; no logic or output change.

Signed-off-by: Otavio Salvador <1d31b11c1b92bf5d043d36edfe7174db39a6b891@ossystems.com.br>

UpdateHub/updatehub