Fix trailing white space when outputting new swarm files. (still having a trailing new line though)