scripts: check-aclrules: use regular expressions less often
scripts: check-aclrules: use regular expressions less often

Use a simple
  if "substr" in line
before running a regular expression, which saves time,
especially if the regex has a capture group.

This reduces runtime of the check by almost 78 % for me.

Signed-off-by: Ján Tomko <4cab11cfb98d3c937327354a78eb07dbb6ee2bc6@redhat.com>
Reviewed-by: Daniel Henrique Barboza <627b089ad62deae9aaf06ccfa2c9056df28927e0@gmail.com>
Reviewed-by: Erik Skultety <2c14d38fa47c8799f1b9c16280abe27f8edfec6e@redhat.com>

jfehlig/libvirt,libvirt/libvirt,jardasgit/libvirt,jardasgit/libvirt,jfehlig/libvirt,olafhering/libvirt,fabianfreyer/libvirt,olafhering/libvirt,libvirt/libvirt,olafhering/libvirt,fabianfreyer/libvirt,crobinso/libvirt,jardasgit/libvirt,jardasgit/libvirt,nertpinx/libvirt,libvirt/libvirt,zippy2/libvirt,jfehlig/libvirt,nertpinx/libvirt,libvirt/libvirt,zippy2/libvirt,jardasgit/libvirt,crobinso/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,fabianfreyer/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,nertpinx/libvirt,zippy2/libvirt,crobinso/libvirt,crobinso/libvirt,jfehlig/libvirt,zippy2/libvirt,olafhering/libvirt