Fix checkline parsing for skip/todo directives and test_plan
Make pragma check ignore bad pragmas.