Ensure we remove trailing newlines in the version string. Fixes #75