fix server path on RPi
fix stdout redirection on Mac
fix stdout redirection crash on exit for Mac
Merge pull request #249 from jweather/gui-cleanup

Gui cleanup