Update build release script for Git. Refs #17176.