init-db, rev-parse --git-dir: do not append redundant slash