magit-show-or-scroll: Fix broken scroll

Commit df45a4d7eb broke scrolling for commits and stashes because it
used raw `magit-*-buffer-name-format' values for the buffers.
Merge pull request #1367 from kyleam/fix-magit-scroll

magit-show-or-scroll: Fix broken scroll