fixes #770 : Persisting last cell language in variable

Using the variable instead of storing the language in an array
This function is only called once, from init.  (Unlike curr_cmd, which is called in a bunch of places.)

Again, it is only needed in init, and it isn't much code, so it doesn't belong here.