kernel: make swconfig checkpath compliant