Fix the format of rugged alternate directory list Closes #39046 See merge request gitlab-org/gitlab-ce!14840