adjust the configuration name extraction algorithm