Fix USE_EXISTING_VER issue with ghost repos.

When using ghost repositories, USE_EXISTING_VER was not correctly
finding the updated version.