Bug fixes for awe_preprocess_qc.pl