fix dirpaths