Change default path of config to user's home

Refactor how the default config path is generated.