Make init script non-executable for linuxw
Removing Mac commands
Fixing competibility issues