Fix to truncate configuration file on save

On Configuration.saveAccounts() configuration file does not truncate
which breaks configuration file on removing an account.