Fix typo

Signed-off-by: Michal Čihař <michal@cihar.com>
Check optional deps for being old as well

This way we can catch things like too old Mercurial.

Issue #511

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