replace absolute paths with relative