I fully agree with that.
Also I think the issues may have been line ending related.
opening mainmenu.sh with nano revealed DOS line endings for example...
Duh? Why? probably WinScp "getting in the way" again. Silly thing.
I have enclosed a dos2unix to fix this (and any future foofs) natively.
Ooops