RestrictToDirectory: Add missing "var repoPath = ..."