This is not a bad fix, but I'm wondering can we do better. In the above line, we split the contents of VERSION_FILE into `words`. This is done automatically by bash with respect to the IFS variable which lists the whitespace characters word-splitting should be done on.

IFS by default contains characters such as `\n` and `\t` but doesn't include `\r`. If we can add the latter to IFS, we would't need to strip it later on.

My idea is to do something like this before the `words=...` line:

```sh
IFS="${IFS}$'\r'"
```