support --basename and --dirname.
Rename git-root to scm-root.
scm-root to support hg.
Update read me with new switches.