Fix comment typo.
Replace non-existent exceptions with sys.exit().
Handle diffs done from directories other than the repo's root.