Fixed Windows/DoS compatibility

Added correct stripping and returning of system echo.