path: Get rid of variable shadowing warnings