Fix automatic repo_hash construction