[getusedversions] Return last commit that is synced with the master branch