Windows uses \r\n for EOLs and Unix uses just \n. The fact that you're editing Unix text files with a Windows text editor is 100% the problem. You can fix them after the fact with the nearly ubiquitous dos2unix command.
_________________________
Bitt Faulk