How to get correct path of file between revisions