pathtools: Fix relocation for paths with '.' in them