Update reference to be relative to file.