Scan directories and loads config json and yaml files