CRM-13737 fix for civicrm-core outside drupal