Added support for Mercurial

I've added a support for Hg repositories (the condition just checks if we're under git, otherwise uses hg as default).