Fix links to remove .git from path when running in non-bare repository.
Remove invalid dangling quotes.