grep for %check only at the beginning of the line