Fix unavailability checking on opam 1.1.1. Fix #3021.