Replaced $KERNEL_VERSION with ${KERNEL_VERSION}, which is more robust.