package config

import (
	"os"
	"path/filepath"
)

func defaultDirectory() string {
	base := filepath.Base(os.Args[0])
	ext := filepath.Ext(base)

	drv := os.Getenv("SystemDrive")
	pdDir := `\ProgramData`
	name := base[0 : len(base)-len(ext)]

	return filepath.Join(drv, pdDir, name, name)
}

package config

import (
	"os"
	"path/filepath"
)

func defaultDirectory() string {
	base := filepath.Base(os.Args[0])
	ext := filepath.Ext(base)

	drv := os.Getenv("SystemDrive")
	pdDir := "ProgramData"
	name := base[0 : len(base)-len(ext)]

	return filepath.Join(drv, pdDir, name, name)
}

--- 
+++ 
@@ -10,7 +10,7 @@
 	ext := filepath.Ext(base)
 
 	drv := os.Getenv("SystemDrive")
-	pdDir := "ProgramData"
+	pdDir := `\ProgramData`
 	name := base[0 : len(base)-len(ext)]
 
 	return filepath.Join(drv, pdDir, name, name)
Add starting backslash to programdata.
