Store the current kernel version in /etc instead of /var/run, to persist it across reboots