Modified hook.remove to remove all hook "hookname" if name is nil