remove extraneous newline from the end of version string

As it is now, version.txt will contain a newline at the end. Instead of trimming it in every place where the version is used, I thought it was a better idea to kill it right at the start.

Untested :-)