Fix problem in https://github.com/dwilkie/carrierwave_direct/issues/129