When using `latest` as Git Extensions reference version, check the status of the build, and if it is failed, use the previous one.