get the right repo version number for origin and deps