Fixing ^M in scripts