Add a feature to set the directory from the settings panel