Paths with colons - if-condition fix

Added missing parentheses ().