Some Unix servers are configured to auto-detect file endings! Scripts cause problems when they have wrong line-endings!
Open a new file in EditPlus, goto Document>File Format and select Unix and then copy-paste the contents of the file which you would like to convert and then save it!