Remove Windows ^M characters.  Fixed a bug on the sed command