openmpi-release.sh: update for git

Also add consistent indenting to make the loop easier to read.

(cherry picked from commit 0997c91a6a1f4ca28fedc4af98ca14e1e01f2b2c)