diff --git a/core/includes/config.inc b/core/includes/config.inc
index 8c2772b..8e3f568 100644
--- a/core/includes/config.inc
+++ b/core/includes/config.inc
@@ -43,8 +43,7 @@ function config_install_default_config($module) {
       // Load config data into the active store and write it out to the
       // file system in the drupal config directory. Note the config name
       // needs to be the same as the file name WITHOUT the extension.
-      $parts = explode('/', $file);
-      $file = array_pop($parts);
+      $file = basename($file);
       $config_name = str_replace('.xml', '', $file);
 
       $verified_storage = new DrupalVerifiedStorageSQL($config_name);
