fixing ValueError: path too long for Windows and removing carrige returns
for windows