Fix wrong when condition that ends up with jinja error when the content of /etc/hosts contains parenthesis