Remove redundant kernel source directory checks.