magit-read-file-from-rev: fix when not at repository root

Previously `magit-read-file-from-rev' read a filename relative to the
current directory, but since callers expect a filename relative to the
repository root, that did not work when the two are not identical.