Hi,
There is an issue with some of the files having a carriage return in them, which suggests they were edited on Windows, you would see ^M at the end of lines.
It would be the scripts in this location:
/var/www/cgi-bin/wily/packages/machine/machine-settings
Based on the ones that are failing, I would expect you need to update the scripts called settimezone, setnetwork but I would check them though to make sure they are all cleaned up correctly.
Thanks,
David Lewis