Add missing require of pathname.