Fixed the problem when repositories dont have a directory (for grouping
the repos) within its name.