Fix bug in client that was using index of the non versioned repository

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>