filter library version taking the more recent one