generate conf without trailing whitespace, fixes #126, r=@twobraids