Kernel clean-up script