fix checks for scripts that refer to multiple cards in requires property
use recursive grep instead of shell expansion