Update carrierwave.rb

Fix "NoMethodError: undefined method `gsub!' for nil:NilClass"