slight mistake, removed the leading config from the filename before checking for config in the name.