change prereq to work with an any logic, not a all logic

per #5636