update scripts for purging unused kernels