The driver is linked against the kernel for a specific version once you modify that variable then you have to recompile the driver for the kernel once again.
Simple enough to do for the nvidia driver, just run the install script again.
Also make sure you installed the new kernel sources package update too.
You NEEd the kernel sources for whichever version you're running in order to compile a new driver for that kernel.
Thats about it.