Save just 1st 1k and last 3k lines of cmsRun stdout. Fixes #4277