Draft: Improve handling of missing meta files and detection of perl-dev requirment
A few improvements based on things I have noticed and issues I saw with MR aports!56269 (closed)
When the meta files are missing the script would fail part way through this sorts it. better detection of when perl-dev is required