save 1st 1k and last 3k lines of cmsRun stdout instead of last 1MB, fixes #4277