Fixed #86

This fixes the issue for me
I replaced source with dot command since you wanted "sh" shell and not bash.  there is no such thing as source in sh shell, which is why onScript* were failing for me in Ubuntu.