magit-buffer-file-name: properly deal with symlinks

This fixes #922.