Include used hook scripts in layers