Categorized by me as “WTF???”. I did have sh installed in the bin-folder, but as usual, Google is my friend, found this perl snippet

perl -i -pe's/\r$//;' <file name here>

Solution provided by vbrummet