pipeline_idr.py - changed so all bamfiles are sorted by default during preprocessing step, made tempfile locations generic