Actually ensure directory existence
small changes to thermostat
clean the generated files.