Added extra checks on the state of the kernel source.
Authored by: duncansands 2003-09-22
Parent: [r1776]
Child: [r1778]