Patched sites/all/modules/contrib/migrate/plugins/destinations/file.inc, according to http://drupal.org/node/1901648