refactored handling of stdout/stderr for better UX, also fixed some missing path sanitization.
refactored handling of stdout/stderr for better UX, also fixed some missing path sanitization.

rosmod/webgme-rosmod,rosmod/webgme-rosmod