The LoadRepositories function interates over a list of paths and expects to find a distro configuration in one of them. The case when no path with valid configuration is found was not handled. This patch introduces the check.