Redefine file output and add - for stdout/err