[PATCH 2/4] scrrun: Use same write implementation for pipe stream.