Add validation for the version of excluded packages