Merge pull request #9789 from eleuzi01/issue-74-backport

[Backport 3.6] Move scripts used by all-core.sh to the framework