reindent all bash scripts to make them bash8 compliant

also add a test for it