pathtools: Fix variable declaration.