Don't check optional deps on OpenShift.

Hi Michal

Commit 9ad0514 requires certain versions of the optional dependencies even if they are not installed. Because OpenShift has a very old version of Mercurial preinstalled installation of Weblate now fails. Please find a possible fix in this pull request. Not sure if this is right way though.

Daniel