AtlasBuildScripts: more cleanup on external build failures See merge request !54805
mentioned in commit fa4fa61a
mentioned in commit 1c2b1430