[BUILD] move the definition line of yaml files search outside the targets section