remove ^M in bash script