Fix typo in comment
Neater layout for chained if-statement
Prefer installed dependencies when using --older-dependencies.

If a dependency is not yet installed it will choose the oldest possible
version.