Stop searching config if we reach root directory