Fix missing path check in ctx-check [skip CI]