Do not install packages which are already installed

Signed-off-by: Michal Čihař <michal@cihar.com>
Install Mercurial by pip

Signed-off-by: Michal Čihař <michal@cihar.com>