Merge pull request #22 from rnc/master

Fix Git/HG/svn revision retrieval. Use one path for retrieving revisions
Better error handling for HG