run_hook(): check the executability of the hook before filling argv