if output is undefined let let it empty
Fix:
The "sys" module is now called "util". It should have a similar interface.