Fix bug in simpleshell where cat /sd/file where file has a very long lin...

...e causes crash