remote file_attach_load() patch from Drupal core (already patched in 7.22)