Prepend the path to the repository root when editing a diff file

Fixes #165