Fix zip file prefix search logic