[#73798988] Check for environment variable for git ref so that mortar framework can ...

...easily pass the git ref used for a specific run.