Make sure to convert newlines before reading version file

This fix uses the problems mentioned here #170.
The only thing I am not sure about is whether dos2unix is installed in babun.