Do not segfault when unable to create default config file

Fixes GitHub issue #1