Backport EE changes made to the scripts/ directory
What does this MR do?
This backport changes made by EE to the files in the scripts/ directory. This comes with a few changes to some scripts to make them work in the single codebase setup.
EE MR: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14778
Does this MR meet the acceptance criteria?
Conformity
Edited by Yorick Peterse