Fix ref to repo_dir