support 2>&1 style output to the same file