Forked from http://drupal.org/project/registry_rebuild