Evolution of pulse shapes during compressor scans in a CPA system and control of electron acceleration in plasmas