diff --git a/core/includes/config.inc b/core/includes/config.inc
index 8c2772b..9a011da 100644
--- a/core/includes/config.inc
+++ b/core/includes/config.inc
@@ -43,9 +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);
-      $config_name = str_replace('.xml', '', $file);
+      $config_name = basename($file, '.xml');

       $verified_storage = new DrupalVerifiedStorageSQL($config_name);
       $verified_storage->write(file_get_contents($module_config_dir . '/' . $file));
