Fix login issue when choosing default directory.

The config file was being written with empty data.

Fixes exercism/exercism.io#998