Strip CR characters from build.properties when detecting the sbt version

If the sbt.version line in build.properties ends with CRLF (for example,
after being copied over from a Windows machine) instead of LF, the CR
needs to be stripped off so as to not become a part of the version number
(which makes downloading of the required launcher jar fail with very
strange console output due to those control characters).