tee like stream for output both file and stdout