Trim contents of VERSION in case of newline
Merge pull request #579 from d2r/d2r-prevent-VERSION-nl-problem

Trim contents of VERSION in case of newline