Allow overriding core hooks using hooks in node_modules, but make hooks in api/hooks/ take precenence.