Exclude older versions from valid dependencies