generic: allow to override kernel version to use

This is also used to take the right module directory.
generic: respect overriding of some environment variables

ROOT, LINUX and VERSION are meant to be overridable. When starting tmux,
let's keep them.