Recursive sed based solution for converting line endings from Unix to DOS format