Error: ./thermal/ is not a valid directory.
Check the $base_dir variable.