added more code for cleaning up terminal output when a command result has multiple empty lines
added more code for cleaning up terminal output when a command result has multiple empty lines

Lao-liu/mist.io,DimensionDataCBUSydney/mist.io,Lao-liu/mist.io,DimensionDataCBUSydney/mist.io,Lao-liu/mist.io,Lao-liu/mist.io,DimensionDataCBUSydney/mist.io,DimensionDataCBUSydney/mist.io