Quick fix to check.py, ignore _gen_kernel files, improve regex matching