append stdout and stderr to file instead of overwriting the file