Paths with colons - if-condition fix

Separated if-conditions.