updated purgekernels to also remove header files