I just noticed that in <containerName_zip.sh> in bootstrap scripts, for example this from QSIPrep multises bootstrap script:
cd prep
7z a ../${subid}_${sesid}_qsiprep-0.14.2.zip qsiprep
rm -rf prep .git/tmp/wdir
rm ${filterfile}
There should be cd .. before rm -rf prep .git/tmp/wdir.
This also happens in other BIDS App's bootstrap scripts, too....