Fix kernel/file warnings, simple variables in 'not' evaluator [ci skip]