cli: Write trailing newline to config

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>