Fix a bug where an erroneous newline in the version string would lead to a syntax error