Check if the repo exists when generating the version number