recursive parsing config on a directory