Various fixes. Most importantly a working tern recipe.
Various small fixes. Os reinstallation imminent.