fix to use the custom config dir instead of default value