Updated scripts according to recent drupal.org changes.
Rebuild cards