func CachePath(path ...string) string {
	varDir, ok := os.LookupEnv("THERM_DIR")
	logDir := "/var/cache/therm"
	if ok && varDir != "" {
		logDir = filepath.Join(varDir, "cache")
	}
	items := []string{logDir}
	items = append(items, path...)
	return filepath.Join(items...)
}
CachePath returns the directory that THERM should its cache under. If
THERM_DIR is set, this path is $THERM_DIR/cache, otherwise it is
/var/cache/therm.
package sys
import (
	"os"
	"path/filepath"
)
func VarPath(path ...string) string {
	varDir, ok := os.LookupEnv("THERM_DIR")
	if !ok && varDir == "" {
		varDir = "/var/lib/therm"
	}
	items := []string{varDir}
	items = append(items, path...)
	return filepath.Join(items...)
}