`config.rootDirectory` should be a String, not Array