Attempt to fix the constant addition of empty lines when saving the
config.