#Amazon S3 module bug, patch from https://drupal.org/node/1178544.