replace absolute home path with relative path