Fix repository version update.

As function set_repo_user_version accepts argument reposcver of int
type, it should use %d format string instead of %ld. This may cause
version number corruption on systems where sizeof(int) != sizeof(long).