replace absolute paths with relative ones.