Fixes the data and archive directory settings.