fix issue with loading civi class api where CIVICRM_SETTINGS_PATH is defined as plugins/civicrm/civicrm/../civicrm.settings.php