replace absolute path with relative path