Fix tailing of files in the output sandbox. #3522.