Strip newline from version

Without this I'm getting a trailing `\n` on the version which seems to confuse the web interface.