Store hookDir in hook.