Will the mod work as it is or not? if it is not important, and the mod would work anyway, then I'm probably leaving it as it is.
If not - if you have a minute, can you please e-mail me the file with correct line breaks(mail is kulyok, at
yandex.ru)?
This error message
/bin/sh^M: bad interpreter: No such file or directory
looks like it might be caused by an extra line break symbol the shell interpreter does not recognize, so I guess it's important. I can't check for sure without having access to a mac myself.
Kulyok, I'll mail you the fixed file in a bit, but I'd rather provide instructions so you can check and fix such cases in future without my help.

You'll need an editor which supports multiple line-separator styles, such as ConTEXT, Crimson Editor, SC UniPad, or something similar. I think Notepad++ also supports changing line breaks type, but I don't have it installed right now, so no 100% guarantee.
In ConTEXT: Use menu command Tools -> Convert text to... and select Unix (LF)*
In Crimson Editor: Use menu command Document -> File format -> Unix Format (LF only)*
In SC UniPad: Use menu command File -> File Properties... -> Line Separators combo box --> Unix (LF)*
*I'm guessing Mac Format (CR only) options should also work, but Unix option has been confirmed in practice to work on Macs, so I'd stick with it.
Incidentally, SC UniPad editor has also proved quite useful in editing UTF8 tra files for BGEE, since it doesn't lose special characters when saving in this format (unlike Crimson Editor which has been known to do that), and supports input and visual output in multiple national charsets.