Improved setting defaults when there is no config file
[FIX] Proper way of writing map values to file