Add git and mercurial as dependencies