update version hack to work on partial repositories