Handle linebreaks in on-screen console (Fixes #256)
Use stat instead of lstat on GEKKO