Fix share directory settings.