For any file that has the same path (ignoring the version string) take the one with the highest version string.  How does that sound?