Do OR of hash keys and AND of array elements for depends.os and depends.classes