Keep track of the base dir for each rulebook.