Gui cleanup

- fix server path on RPi
- fix stdout redirection on Mac
- fix stdout redirection crash at exit on Mac