adds conditions to carrierwave for environments