Remove newline characters from VERSION

Windows builds read VERSION wrong, and define a constant with a newline
in it. This is because the checkout is done in a Windows environment
with Windows line endings, but compilation is done in an UNIX-like
Cygwin environment.

Fix it by removing any \r or \n found within.