Fix issue with invalid /libs/{lib} ---> /libs/{lib/}{lastest version} redirecting

@tadatuta @tavriaforever @gela-d