<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _addconfig(config, *paths):
 """Add path to CONF_DIRS if exists."""


    for path in paths:
        if path is not None and exists(path):
            config.append(path)