build: add platform_dir and dispatcher_name to all hook wrapper/plugin templates
feat(hooks): platform-aware path checks using platform_dir and dispatcher_name from JSON input
test: update regression snapshot for platform-aware hook wrappers and scripts