Add requireByDir utility