Fix $Rev$ updating in build script. Refs #17176.