Improve logging on problems determining the HOME folder and writing the
default configuration.