If we are using the config in this way, we could remove dir and use wraith.directory.