Add Mercurial support
Fix shebang
Enable git rerere