CSPACE-5924: Rewrite tarball-building script to work across variations of 'find' and 'sed' behavior.