More clean.sh-related cleanups

Merged Michał Kępień requested to merge matthijs/more-clean.sh-related-cleanups into master

This is a follow-up to !1565 (merged) which I created from the commits @matthijs originally prepared for that MR.

Merge request reports