magit-rev-diff-count: support git < 1.7.2
magit-git-dir: use file-name-as-directory

instead of (concat ... "/").
Merge branch 'fix-diff-count'